.voice-room {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message {
  background-color: #dc3545;
  color: white;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-align: center;
}

.room-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.room-controls input {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.room-controls button {
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.room-controls button:hover {
  background-color: #0056b3;
}

.room-controls button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.room-id-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #e9ecef;
  padding: 8px 12px;
  border-radius: 4px;
  flex: 1;
}

.room-id-display span {
  font-size: 16px;
  color: #333;
}

.copy-button {
  background-color: #28a745 !important;
}

.copy-button:hover {
  background-color: #218838 !important;
}

.participants {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
}

.participants h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.participants-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.audio-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #28a745;
  animation: pulse 1.5s infinite;
}

.audio-indicator.muted {
  background-color: #dc3545;
  animation: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .room-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .room-controls input,
  .room-controls button {
    width: 100%;
  }
  
  .room-id-display {
    flex-direction: column;
    text-align: center;
  }
} 